<template>
  <view class="content">
    <scroll-view :scroll-y="true">
      <view id="myPdfH5"></view>
    </scroll-view>
  </view>
</template>

<script>
import Pdfh5 from "pdfh5"
import { previewContrac } from '@/service/qrCode/qrCode.service.js'
// import { watchPrePage }  from '@/unit/common.js'
export default {
  data() {
    return {
      pdfData: null
    }
  },
  mounted() {
    previewContrac({}, res => {
      this.pdfData = new Pdfh5("#myPdfH5", {
        data: res
      })
    })
  }
}
</script>

<style scoped>
  @import "pdfh5/css/pdfh5.css";
  .content {
    width: 100%;
    height: 100%;
  }
  #myPdfH5 {
    height: 100vh;
  }
  /deep/ .pinch-zoom-container {
    height: 100vh !important;
  }
</style>
